package com.xinhe.web.controller;

import com.xinhe.web.common.Result;
import com.xinhe.web.entity.ConfigurationDate;
import com.xinhe.web.request.ServiceCenterQuery;
import com.xinhe.web.service.AliyunService;
import com.xinhe.web.service.ServiceCenterService;
import com.xinhe.web.util.ValidatorUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.Valid;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;

@Api(value = "日期配置释放表", tags = {"日期配置释放表"})
@RestController
@RequestMapping(value = {"/configurationDate"}, produces = {"application/json;charset=UTF-8"})

public class ConfigurationDateController {
    /*@Autowired
    private IConfigurationDateService configurationDateService;

    @ApiOperation(httpMethod = "GET", value = "分页查询日期配置释放表")
    @RequestMapping({"/pageConfigurationDate"})
    public PageResult<ConfigurationDateView> pageConfigurationDate(ConfigurationDateQuery query) {
        return this.configurationDateService.pageConfigurationDate(query);
    }
    @ApiOperation(httpMethod = "POST", value = "保存日期配置释放表")
    @RequestMapping({"/saveConfigurationDate"})
    public BaseResult saveConfigurationDate(@Valid ConfigurationDateModel model, BindingResult bind) {
        if (bind.hasErrors()) {
            BaseResult result = new BaseResult();
            result.setBindingResult(bind);
            return result;
        }
        return this.configurationDateService.saveConfigurationDate(model);
    }

    @ApiOperation(httpMethod = "GET", value = "删除日期配置释放表")
    @ApiImplicitParam(name = "configurationDateId", value = "标识", dataTypeClass = Long.class, required = true)
    @RequestMapping({"/deleteConfigurationDate"})
    public BaseResult deleteConfigurationDate(Long configurationDateId) {
        return this.configurationDateService.delete(configurationDateId);
    }

    @ApiOperation(httpMethod = "GET", value = "日期配置释放表详情")
    @ApiImplicitParam(name = "configurationDateId", value = "标识", dataTypeClass = Long.class, required = true)
    @RequestMapping({"/detailConfigurationDate"})
    public BeanResult<ConfigurationDate> detailConfigurationDate(Long configurationDateId) {
        return this.configurationDateService.findById(configurationDateId);
    }*/
}
